package com.station.client.dragNDrop;

import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.DragStartEvent;
import com.google.gwt.event.dom.client.DragStartHandler;

/**
 * Created by Jimmy87 on 24.12.13.
 */
public class ExitItem extends DraggableItem {

    public ExitItem() {
        getElement().setDraggable(Element.DRAGGABLE_TRUE);
        setUrl("imgs/road_out.jpg");
        setSize("50px","50px");
        addDragStartHandler(new DragStartHandler() {
            @Override
            public void onDragStart(DragStartEvent event) {
                event.setData("type","exit");
            }
        });
    }


}
